package com.oren.pojo;

import com.oren.annotation.Column;
import com.oren.annotation.Id;
import com.oren.annotation.Table;

import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 * User: wangshiwei
 * Date: 2018/6/13
 * Time: 15:32
 * describe:客户
 */
@Table
public class Customer {

    /**
     * id
     */
    @Id(increaseId = false)
    private Integer id;

    /**
     * 客户名称
     */
    @Column
    private String name;

    /**
     *联系人
     */
    @Column
    private String contact;

    /**
     * 电话号码
     */
    @Column
    private String telephone;

    /**
     * 邮箱地址
     */
    @Column
    private String email;

    /**
     * 备注
     */
    @Column
    private Integer remark;

    @Column
    private Date time;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getRemark() {
        return remark;
    }

    public void setRemark(Integer remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "Customer{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", contact='" + contact + '\'' +
                ", telephone='" + telephone + '\'' +
                ", email='" + email + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
}
